package com.ruoyi.common.SqlUtil;


import com.ruoyi.common.utils.SqlInjectionCheck;

/**
 * Created by liliqiang on 2017/9/5.
 */
public class SqlMosaic {


    private static volatile SqlMosaic sqlMosaic;


    /**
     * 需要传入即将使用的客户端参数类
     * @param object
     * @return
     */
    public static SqlMosaic getInstance(Object object) {

        if(SqlInjectionCheck.Check(object)) {
            throw new RuntimeException("参数存在脚本注入嫌疑");
        }

        if (sqlMosaic == null) {
            sqlMosaic = new SqlMosaic();
        }
        return sqlMosaic;
    }

    private SqlMosaic() {

    }



}
